package com.mars.basic.repository;

import com.mars.basic.allmain.entity.PermissionEntity;
import com.mars.basic.allmain.po.Permission;
import com.mars.basic.convert.PermissionConvert;
import com.mars.basic.repo.PermissionRepo;
import com.mars.common.convert.IEntityPOConvert;
import com.mars.common.repository.SimplePoConvertEntityRepository;
import com.rp.spring.jpa.GenericJpaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class PermissionRepository extends SimplePoConvertEntityRepository<PermissionEntity, Permission,Integer> {
    @Autowired
    PermissionRepo userRepo ;
    @Autowired PermissionConvert convert;

    @Override
    public GenericJpaRepository<Permission, Integer> repo() {
        return userRepo;
    }

    @Override
    public IEntityPOConvert<PermissionEntity, Permission> convert() {
        return convert;
    }
}
